package com.lcy.demo.xml;

/**
 * Created by PC on 2017/3/29.
 */

public class UserServiceImpl implements UserService{
    private UserMapper userMapper;

    @Override
    public Integer insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public User getUser(Integer id) {
        return userMapper.getUser(id);
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
}
